package main

import (
	"fmt"
	"net/http"
)

func main() {
	mux := http.NewServeMux()
	mux.HandleFunc("/", func(resp http.ResponseWriter, req *http.Request) {
		fmt.Fprintln(resp, "hello world2")
	})
	mux.HandleFunc("/do", func(resp http.ResponseWriter, req *http.Request) {
		fmt.Fprintln(resp, "do something2")
	})
	server := &http.Server{
		Addr:    ":9001",
		Handler: mux,
	}
	err := server.ListenAndServe()
	fmt.Println(err)
}
